package com.zuxia.impservices;

import java.util.List;

import com.zuxia.iDao.DepartmentinfoDAOI;
import com.zuxia.iDao.InventoryinfoDAOI;
import com.zuxia.impDao.InventoryinfoDAO;
import com.zuxia.iservices.InventoryinfoServicesI;
import com.zuxia.po.Inventoryinfo;

public class InventoryinfoServices implements InventoryinfoServicesI{
	
	/**
	 * 库存dao接口
	 */
	private InventoryinfoDAOI inventoryinfoDAO;
	
	
	public InventoryinfoDAOI getInventoryinfoDAO() {
		return inventoryinfoDAO;
	}


	public void setInventoryinfoDAO(InventoryinfoDAOI inventoryinfoDAO) {
		this.inventoryinfoDAO = inventoryinfoDAO;
	}


	public List findAll() {
		System.err.println("开始查询所有库存");
		return inventoryinfoDAO.findAll();
	}


	public void save(Inventoryinfo invertoryinfo) {
		 inventoryinfoDAO.save(invertoryinfo);
	}
	
	public Integer count(String name){
		return inventoryinfoDAO.count(name);
	}


	@SuppressWarnings("unchecked")
	public List<Inventoryinfo> selAllInventoryinfoPageModel(Integer page, Integer tr, String itiname) {
		// TODO Auto-generated method stub
		return inventoryinfoDAO.selAllInventoryinfoPageModel(page, tr, itiname);
	}

	//删除
	 public Boolean delectInventoryinfo(int itiid) {
		// TODO Auto-generated method stub
		return inventoryinfoDAO.delectInventoryinfo(itiid);
	}


	public Boolean updateInventoryinfo(Inventoryinfo transientInstance) {
		return inventoryinfoDAO.updateInventoryinfo(transientInstance);
	}


	public List<Inventoryinfo> selectiTIId(int itiid) {
		return inventoryinfoDAO.findById(itiid);
	}








	
}
